﻿<UserControl x:Class="myChannel9.Control_Show"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}">

    <UserControl.Resources>
        <Style x:Key="PanoramaTextBlock" TargetType="TextBlock">
            <Setter Property="Foreground" Value="#FF404040"/>
            <Setter Property="FontSize" Value="30"/>
        </Style>

        <Style x:Key="PanoramaTextListBox" TargetType="ListBox">
            <Setter Property="ItemContainerStyle">
                <Setter.Value>
                    <Style TargetType="ListBoxItem">
                        <Setter Property="Template">
                            <Setter.Value>
                                <ControlTemplate TargetType="ListBoxItem">
                                    <TextBlock Text="{Binding Name}"
                                               Style="{StaticResource PanoramaTextBlock}"/>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <StackPanel Orientation="Horizontal">

            <ListBox x:Name="lboShow1" HorizontalAlignment="Left" Width="200" SelectionChanged="lboShow1_SelectionChanged">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Grid x:Name="LayoutRoot" Background="Transparent" Margin="0,0,0,15" >
                            <Grid Background="White" Opacity="0.6" Width="180" Height="180" />
                            <StackPanel Orientation="Vertical">
                                <Image Source="{Binding Image}" Width="160" Margin="0,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                                <TextBlock Foreground="#FF404040" Margin="0,10,0,0" Text="{Binding Heading}" FontSize="30" Style="{StaticResource PanoramaTextBlock}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                            </StackPanel>
                        </Grid>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

            <ListBox x:Name="lboShow2" HorizontalAlignment="Left" Width="200" SelectionChanged="lboShow2_SelectionChanged">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Grid x:Name="LayoutRoot" Background="Transparent" Margin="0,0,0,15" >
                            <Grid Background="White" Opacity="0.6" Width="180" Height="180" />
                            <StackPanel Orientation="Vertical">
                                <Image Source="{Binding Image}"  Width="160" Margin="0,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
                                <TextBlock Foreground="#FF404040" Margin="0,10,0,0" Text="{Binding Heading}" FontSize="30" Style="{StaticResource PanoramaTextBlock}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                            </StackPanel>
                        </Grid>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

            <!--<StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Top">
                <StackPanel x:Name="gridThisWeek" Orientation="Horizontal" Margin="0,0,0,0" >
                    <local:Control_Show x:Name="Show_ThisWeek" />
                    <local:Control_Show x:Name="Show_SilverlightTv" Margin="20,0,0,0" />
                </StackPanel>

                <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                    <local:Control_Show x:Name="Show_EndpointTv" />
                    <local:Control_Show x:Name="Show_TheOfficeBlog"  Margin="20,0,0,0" />
                </StackPanel>

                <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                    <local:Control_Show x:Name="Show_InsideOut" />
                    <local:Control_Show x:Name="Show_GoingDeep" Margin="20,0,0,0" />
                </StackPanel>

                <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                    <local:Control_Show x:Name="Show_Ping" />
                    <local:Control_Show x:Name="Show_InsideXbox" Margin="20,0,0,0" />
                </StackPanel>

                <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                    <local:Control_Show x:Name="Show_CloudCover" />
                    <local:Control_Show x:Name="Show_TheIdElement" Margin="20,0,0,0" />
                </StackPanel>

                <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                    <local:Control_Show x:Name="Show_GeekSpeak" />
                    <local:Control_Show x:Name="Show_ArcastTv" Margin="20,0,0,0" />
                </StackPanel>

                <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                    <local:Control_Show x:Name="Show_TheKnowledgeChamber" />
                    <local:Control_Show x:Name="Show_ButWhy" Margin="20,0,0,0" />
                </StackPanel>

                <StackPanel Orientation="Horizontal" Margin="0,20,0,00">
                    <local:Control_Show x:Name="Show_TheHpcShow" />
                    <local:Control_Show x:Name="Show_TheAccessShow" Margin="20,0,0,0" />
                </StackPanel>

                <StackPanel Orientation="Horizontal" Margin="0,20,0,0">
                    <local:Control_Show x:Name="Show_BehindTheCode" />
                    <local:Control_Show x:Name="Show_Coding4funTv" Margin="20,0,0,0" />
                </StackPanel>
            </StackPanel>-->
        </StackPanel>
    </Grid>
</UserControl>

